//
//  CBowser.h
//  Mario_project
//
//  Created by Vincent Descreux on 21/05/13.
//  Copyright (c) 2013 Vincent Descreux. All rights reserved.
//

#ifndef _CBOWSER_H_
#define _CBOWSER_H_

#include "CEntity.h"

class CBowser : public CEntity {
    
public:
    bool Big;
    bool Forward;
	int	Coin;
	int Score;
	bool levelFinished;
    bool checkpoint;
    int positionDepartX; // sera modifiee si on passe dans un checkpoint
	int positionDepartY; // sera modifiee si on passe dans un checkpoint

public:

    CBowser();
   
    bool OnLoad(char* File, int Width, int Height, int MaxFrames);
    
    void OnLoop();
    
    void OnRender(SDL_Surface* Surf_Display);
    
    void OnCleanup();
    
    void OnAnimate();
    
    void OnMove(float MoveX, float MoveY);
    
    bool OnCollision(CEntity* Entity);
    
    bool Collides(int oX, int oY, int oW, int oH);
	
	void endJump();

	void animDemiTour();

	void finirNiveau();
    

private:

    bool PosValidTile(CTile* Tile);

    bool PosValid(int NewX, int NewY);

    bool PosValidEntity(CEntity* Entity, int NewX, int NewY);    

};

#endif
